package com.lottery.material.entity.article;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Description：文章收费定价配置表
 * Created by 朱正磊 on 2019-04-09 10:15
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_article_charge_pricing_config")
public class ArticleChargePricingConfig extends BaseEntity {

    private static final long serialVersionUID = 7589167317752975421L;

    @Column(columnDefinition = "varchar(10) comment '等级编号（material_user_auth_level_dict中level_code）'")
    private String levelCode;

    @Column(columnDefinition = "decimal(19,2) comment '最低定价金额'")
    private BigDecimal minimumPrice;

    @Column(columnDefinition = "decimal(19,2) comment '最高定价金额'")
    private BigDecimal maximumPrice;

    @Column(columnDefinition = "int(1) default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

}
